<div xmlns="http://www.w3.org/1999/xhtml"
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:f="http://java.sun.com/jsf/core"
     xmlns:h="http://java.sun.com/jsf/html"
     xmlns:fn="http://java.sun.com/jsp/jstl/functions"
     class="menu-wrapper">

    <ui:param name="dictClass" value="#{fn:contains(request.servletPath,'dictsPage') ? 'page-menu-active' :''}"/>
    <ui:param name="termClass" value="#{fn:contains(request.servletPath,'termsPage') ? 'page-menu-active' :''}"/>
    <!--<ui:param name="aclClass" value="#{fn:contains(request.servletPath,'aclPage') ? 'page-menu-active' :''}"/>-->

    <ul>
        <li title="#{msgs['/content/dictionary']}"
            class="#{dictClass}">
            <h:panelGroup layout="block" rendered="#{dictClass != ''}">
                <div>
                    <span class="tab">
                        <span>#{msgs['/content/dictionary']}</span>
                    </span>
                </div>
            </h:panelGroup>
            <h:link title="#{msgs['/content/dictionary']}" outcome="/content/dictsPage" rendered="#{dictClass == ''}">
                <span class="tab">
                    <span>#{msgs['/content/dictionary']}</span>
                </span>
            </h:link>
        </li>
        <li title="#{msgs['/content/term']}"
            class="#{termClass}">
            <h:panelGroup layout="block" rendered="#{termClass != ''}">
                <div>
                    <span class="tab">
                        <span>#{msgs['/content/term']}</span>
                    </span>
                </div>
            </h:panelGroup>
            <h:link title="#{msgs['/content/term']}" outcome="/content/termsPage" rendered="#{termClass == ''}">
                <span class="tab">
                    <span>#{msgs['/content/term']}</span>
                </span>
            </h:link>
        </li>
    </ul>
</div>